#
#  Be sure to run `pod spec lint DaRings.podspec' to ensure this is a
#  valid spec and to remove all comments including this before submitting the m.
#
#  To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podm.html
#  To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |spec|

  # ―――  Spec Metadata  ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  These will help people to find your library, and whilst it
  #  can feel like a chore to fill in it's definitely to your advantage. The
  #  summary should be tweet-length, and the description more in depth.
  #

  spec.name         = "DaRingsUI"
  spec.version      = "0.0.1"
  spec.summary      = "A short description of DaRings."

  spec.description  = <<-DESC
                    #{spec.name} module
                  DESC

  spec.homepage     = "http://moyoung/DevelopmentPods"
  # m.screenshots  = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"


  
  # ―――  Spec License  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  Licensing your code is important. See https://choosealicense.com for more info.
  #  CocoaPods will detect a license file if there is a named LICENSE*
  #  Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
  #

  # m.license      = "MIT (example)"
  spec.license      = { :type => "MIT", :file => "LICENSE" }


  # ――― Author Metadata  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  Specify the authors of the library, with email addresses. Email addresses
  #  of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
  #  accepts just a name if you'd rather not provide an email address.
  #
  #  Specify a social_media_url where others can refer to, for example a twitter
  #  profile URL.
  #

  spec.author             = { "jones" => "jones@moyoung.com" }
  # Or just: m.author    = "jones"
  # m.authors            = { "jones" => "jones@moyoung.com" }
  # m.social_media_url   = "https://twitter.com/jones"

  # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  If this Pod runs only on iOS or OS X, then specify the platform and
  #  the deployment target. You can optionally include the target after the platform.
  #

  # m.platform     = :ios
  # m.platform     = :ios, "5.0"

  #  When using multiple platforms
  # m.ios.deployment_target = "5.0"
  # m.osx.deployment_target = "10.7"
  # m.watchos.deployment_target = "2.0"
  # m.tvos.deployment_target = "9.0"


  # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  Specify the location from where the source should be retrieved.
  #  Supports git, hg, bzr, svn and HTTP.
  #

  spec.source       = { :git => "http://moyoung/DaRings.git", :tag => "#{spec.version}" }


  # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  CocoaPods is smart about how it includes source code. For source files
  #  giving a folder will include any swift, h, m, mm, c & cpp files.
  #  For header files it will include any header in the folder.
  #  Not including the public_header_files will make all headers public.
  #

  spec.ios.deployment_target = '10.0'
  spec.static_framework = true


  # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  A list of resources included with the Pod. These are copied into the
  #  target bundle with a build phase script. Anything else will be cleaned.
  #  You can preserve files from being cleaned, please don't preserve
  #  non-essential files like tests, examples and documentation.
  #

  # m.resource  = "icon.png"
  # m.resources = "Resources/*.png"

  # m.preserve_paths = "FilesToSave", "MoreFilesToSave"


  # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  Link your library with frameworks, or libraries. Libraries do not include
  #  the lib prefix of their name.
  #

  # m.framework  = "SomeFramework"
  # m.frameworks = "SomeFramework", "AnotherFramework"

  # m.library   = "iconv"
  # m.libraries = "iconv", "xml2"


  # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  If your library depends on compiler flags you can set them in the xcconfig hash
  #  where they will only apply to your library. If you depend on other Podspecs
  #  you can include multiple dependencies to ensure it works.

  # m.requires_arc = true

  # m.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
  # m.dependency "JSONKit", "~> 1.4"

  
  
# require 'find'

spec.subspec "DaRingsUI" do |s|

  s.subspec "BluetoothManager" do |ss|
    myname  = "BluetoothManager"
    ss.source_files = "#{myname}/**/*.{h,m,swift}"

    ss.dependency "SwiftDate"
    ss.dependency "MYModule"

  end

  s.subspec "HealthManager" do |ss|

    myname  = "HealthManager"
    ss.source_files = "#{myname}/**/*.{h,m,swift}"


  end

  s.subspec "User" do |ss|

    myname  = "User"
    ss.source_files = "#{myname}/**/*.{h,m,swift}"


  end

  s.subspec "Extensions" do |ss|
    
    myname  = "Extensions"
    ss.source_files = "#{myname}/**/*.{h,m,swift}"

  end
    
  s.subspec "NonUI" do |ss|
    
    myname  = "NonUI"
    ss.source_files = "#{myname}/**/*.{h,m,swift}"

    ss.dependency "RxDataSources"
    ss.dependency "MYModule"
    ss.dependency "RxCocoa"
    ss.dependency "RxSwift"
    ss.dependency "SwiftDate"
    ss.dependency "Moya"
    ss.dependency "Hue"
    ss.dependency "Sourcery"
    ss.dependency "RxGesture"
    ss.dependency "Firebase/Analytics", "~> 8.15.0"
    ss.dependency "Firebase/Crashlytics", "~> 8.15.0"
    ss.dependency "SDWebImage"
    
    ss.subspec "BandConfig" do |sss|
      myname  = "BandConfig"
      sss.source_files = "#{myname}/**/*.{h,m,swift}"
      
      sss.resource_bundles = {
          'BandConfig' => ['NonUI/**/*.json']
      }
      
    end
    

  end

  s.subspec "UI" do |ss|

    myname  = "UI"
    ss.source_files = "#{myname}/**/*.{h,m,swift}"
          
    ss.dependency "SDWebImage"
    ss.dependency "RxViewController"
    ss.dependency "ESTabBarController"

    
    ss.subspec "Common" do |sss|

      myname  = "Common"
      sss.source_files = "#{myname}/**/*.{h,m,swift}"
      sss.dependency "JXSegmentedView"
      sss.dependency "lottie-ios"
    end

  end

  s.dependency "MYModule"
  s.dependency "RxDataSources"
  s.dependency "RxCocoa"
  s.dependency "RxSwift"
  s.dependency "SwiftDate"
  s.dependency "Moya"
  s.dependency "Hue"
  s.dependency "Sourcery"
  s.dependency "RxGesture"
  s.dependency "JXSegmentedView"
  s.dependency "SwiftEntryKit"
  s.dependency "SwiftyTimer"
  s.dependency "lottie-ios"
  s.dependency "Firebase/Analytics", "~> 8.15.0"
  s.dependency "Firebase/Crashlytics", "~> 8.15.0"

  s.dependency "RxViewController"
  s.dependency "ESTabBarController"
    
  

end

end
